import store from '@/store'

export default {
  methods: {
    checkPermission(btnMark) {
      const { token, userInfo } = store.state.user
      if (!token) return false
      const points = userInfo.roles.points
      return points.includes(btnMark) // 包含该按钮权限，返回true，否则返回false
    }
  }
}
